package cc.jinglupeng.kom.bean;

import cc.jinglupeng.kom.util.JsonUtil;

import java.io.Serializable;

public class ZkBroker implements Serializable {

    private Integer id;
    private String timestamp;
    private String host;
    private int version;
    private int port;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return JsonUtil.toJson(this);
    }
}

